package com.zzld.modules.autoinn.action;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.zzld.modules.autoinn.service.IStoreService;

@Controller
@RequestMapping("/weixin/f/autoinn/xc/map")
public class WXMapController {

	@Autowired
	private IStoreService storeService;

	private String mapurl = "/wx/autoinn/map";


	
	@RequestMapping(method = RequestMethod.GET)
	public String wxMap(Model model, HttpServletRequest request) {
		
	    model.addAttribute("lng", request.getSession().getAttribute("lng").toString());
	    model.addAttribute("lat", request.getSession().getAttribute("lat").toString());
	    model.addAttribute("dlng", request.getParameter("dlng").toString());
	    model.addAttribute("dlat", request.getParameter("dlat").toString());
		return mapurl;
	}
}
